@echo off
setlocal

:: 检查是否有参数传递给批处理文件
if "%~1"=="" (
    echo No arguments provided.
    exit /b
)

:: 将传递给批处理文件的参数赋值给ARGS变量
set "ARGS=%*"

call conda activate lw
python C:/Users/admin/Desktop/workSpace/UG/yolov5-7.0/yolov5-7.0/detect.py %ARGS% 2>&1
conda deactivate

endlocal